package tset10;

import java.util.Scanner;

public class test7_1 {
	public static void main(String[] args){
		int[] array=new int[2];
		String str=null;
		Scanner sr=new Scanner(System.in);
		while(true){
			String choice=sr.next();
			try{
				if(choice.equals("arr")){
					int n=sr.nextInt();
					array[n]=0;
				}
				else if(choice.equals("null")){
					str.length();
				}
				else if(choice.equals("cast")){
					Object a="a";
					array[0]=(Integer)a;
				}else if(choice.equals("num")){
					String a=sr.next();
					array[0]=Integer.parseInt(a);
				}else
					break;
			}catch(Exception e){
				System.out.println(e);
			}
		
		}
		sr.close();
	}

}
